﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="updateorder.aspx.cs" Inherits="order_updateorder" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
     <link href="../css/addbook.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .auto-style1 {
            width: 114px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <center>
        <div class="wrap">
	<div class="top">
    	<div class="top1">
       
           
        </div>
        
     </div>
            
        
    <div class="shortnfo">
         <h2>当前位置：订单管理->修改订单</h2>
     <div class="menuitems">
        
       

           <ul>
                      <li><a  href="../master/index.aspx" runat="server">首页</a></li>
                       <li><a  href="~/order/select.aspx" runat="server">查询订单</a></li>
                      
                      <li><a    href="~/order/delete.aspx" runat="server">订单回收</a></li>
                      <li><a href="../master/order.aspx">退出</a></li>
                  </ul>
         
     </div>
    </div>
            <div class="content">
                 <table border="0" style="table-layout:fixed;width:100%; text-align:left;height:100%" >
                     <tr>
                         <td class="auto-style1">订单号：</td>
                         <td>
                             <asp:TextBox ID="num" runat="server" Width="132px"></asp:TextBox>
                         </td>
                         <td>订单状态：</td>
                         <td colspan="2">
                             <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource1" DataTextField="状态" DataValueField="状态">
                             </asp:DropDownList>
                         </td>
                     </tr>
                     <tr>
                      <td class="auto-style1">商品名称：</td>
                     <td>
                             <asp:TextBox ID="name" runat="server" Width="132px"></asp:TextBox>
                         </td>
                     <td>付款时间：</td>
                     <td>
                             <asp:TextBox ID="date" runat="server" Width="132px"></asp:TextBox>
                         </td>
                     <td>
                         <asp:Button ID="select" runat="server" Text="查找" OnClick="select_Click" />
                         </td>
                     </tr>
                     <tr>
                         <td colspan="5">
                             <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="订单号" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" AllowPaging="true" PageSize="5" OnPageIndexChanging="GridView1_PageIndexChanging" Height="100%" Width="100%">
                                 <Columns>
                                     <asp:BoundField DataField="订单号" HeaderText="订单号" ReadOnly="True" SortExpression="订单号" >
                                     <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                     </asp:BoundField>
                                     <asp:BoundField DataField="付款时间" HeaderText="付款时间" SortExpression="付款时间" DataFormatString="{0:d}" >
                                     <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                     </asp:BoundField>
                                     <asp:BoundField DataField="商品名称" HeaderText="商品名称" SortExpression="商品名称" >
                                     <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                     </asp:BoundField>
                                     <asp:BoundField DataField="数量" HeaderText="数量" SortExpression="数量" >
                                     <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                     </asp:BoundField>
                                     <asp:BoundField DataField="总价" HeaderText="总价" SortExpression="总价" >
                                     <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                     </asp:BoundField>
                                     <asp:BoundField DataField="状态" HeaderText="状态" SortExpression="状态" >
                                     <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                     </asp:BoundField>
                                     <asp:BoundField DataField="用户" HeaderText="用户" SortExpression="用户" >
                                     <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                     </asp:BoundField>
                                      <asp:CommandField ButtonType="Image" CancelImageUrl="~/image_oracle/BtnCancel.gif"
                    EditImageUrl="~/image_oracle/BtnUpdate.gif" HeaderText="编辑" ShowEditButton="True" 
                    UpdateImageUrl="~/image_oracle/BtnSave.gif" />
                                 </Columns>
                                 <HeaderStyle HorizontalAlign="Center" />
                                 <RowStyle Height="46px" HorizontalAlign="Center" />
                             </asp:GridView>
                             <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString7 %>" ProviderName="<%$ ConnectionStrings:ConnectionString7.ProviderName %>" SelectCommand="select * from orderdetails"></asp:SqlDataSource>
                         </td>
                     </tr>
                     </table>
            </div>
               <div class="footer">
    <p>Copyright ©2019  All Rights Reserved</p> 
     </div>
            </div>

    </center>
    </div>
    </form>
</body>
</html>
